package com.seesman.application.connection.dao.jdbctemplate.extractor;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.ResultSetExtractor;

import com.seesman.application.maintenance.common.bo.CertificateBO;

public class CertificateRSExtractor implements ResultSetExtractor {

	public Object extractData(ResultSet rs) throws SQLException,
	DataAccessException {
		
		CertificateBO certificateBO = new CertificateBO();
		
		certificateBO.setID(rs.getLong("CERTIFICATE_ID"));
		certificateBO.setCertificateName(rs.getString("CERTIFICATE_NAME"));
		certificateBO.setStatus(rs.getString("STATUS"));
		
		return certificateBO;
		
	}
	
}
